package org.entity;

import service.ExecuteService;
import service.ExecuteServiceFactory;

public class EducateSever {
	private Student stuMessage;
	ExecuteService exec = ExecuteServiceFactory.getExecuteServiceInstance();

	public void loginEduAdministrationWeb() {
		// Student stuMessage=new Student();
		// 登录
		while (true) {
			int i = exec.longinScreen();
			// 选择要进行的操作
			if (i == 1) {
				stuMessage = exec.studentlongin(stuMessage);
				exec.confrimationMessage(stuMessage);
				exec.studentFunctionMenu(stuMessage);
			}
			if (i == 2) {
				exec.teacherlongin();
				exec.teacherFunctionMenu();
			}
			if (i != 1 && i != 2) {
				// 结束if (i == 3) {
				// 退出
				System.out.println("结束访问");

			}
		}
	}
}
